home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / hackallo.sty < prev    next >
Text File  |  1995-11-25  |  760b  |  18 lines

  1. % -*-LaTeX-*-
  2. % hackalloc.sty: make allocation local for LaTeX.
  3. % This redefines the allocation primitive so _all_ allocation becomes
  4. % block-local after this is loaded; no idea what the side-effects of this
  5. % may be.  If it breaks, change \alloc@ to \localloc@, and either redefine
  6. % just what you need to use \alloc@, or define \locnew* for local
  7. % allocation, as in the commented lines.
  8. % NOTE: lying again... this doesn't work for inserts which are still
  9. % global.
  10.  
  11. %\def\locnewdimen{\localloc@1\dimen\dimendef\insc@unt}
  12. %\def\localloc@#1#2#3#4#5{\advance\count1#1 by 1
  13. \def\alloc@#1#2#3#4#5{\advance\count1#1 by 1
  14.   \ch@ck#1#4#2% Check room
  15.   \allocationnumber=\count1#1
  16.   #3#5=\allocationnumber
  17.   \wlog{Locally \string#5=\string#2\the\allocationnumber}}
  18.